
/*
 * Copyright (C) 2009 Archie L. Cobbs. All rights reserved.
 *
 * $Id: SimpleDatabaseIterator.java 377 2010-03-11 20:50:18Z archie.cobbs $
 */

package org.dellroad.sidekar.xml;

import java.util.Iterator;

import org.dellroad.sidekar.util.SimpleIterator;

/**
 * Support superclass for iterators that wrap another {@link Iterator}.
 */
abstract class SimpleDatabaseIterator<E, I> extends SimpleIterator<E> implements Iterator<E> {

    protected final Iterator<I> i;

    protected SimpleDatabaseIterator(Iterator<I> i) {
        this.i = i;
    }

    public boolean hasNext() {
        return this.i.hasNext();
    }
}

